import {createApp} from 'vue';
import './style.css';
import App from './App.vue';

// 进度条
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
// 路由
import router from "@/router/index.js";
// 状态管理
import store from "@/store/store.js";
// echarts
import * as echarts from 'echarts';
// Arco Design
import ArcoVue from '@arco-design/web-vue';
import '@arco-design/web-vue/dist/arco.css';
// 额外引入图标库
import ArcoVueIcon from '@arco-design/web-vue/es/icon';

const app = createApp(App);
// 配置echarts
app.config.globalProperties.$echarts = echarts;

app.use(router);
app.use(store);
app.use(ArcoVue);
app.use(ArcoVueIcon);
app.mount('#app');